home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PRectQuery.h < prev    next >
C/C++ Source or Header  |  1996-07-13  |  879b  |  50 lines

  1. /*
  2.  *--- PRectQuery.h --------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *-------------------------------------------------------------------------
  8.  */
  9. #ifndef __PRectQuery__
  10. #define __PRectQuery__
  11.  
  12. #include "PMTypes.h"
  13. #include "PQuery.h"
  14.  
  15. class PRectQuery
  16. {
  17.  
  18. public:
  19.  
  20.     PRectQuery(ePMQuery op);
  21.  
  22.     long xLeft;
  23.     long yTop;
  24.     long xRight;
  25.     long yBottom;
  26.  
  27. private:
  28.  
  29.     PRectQuery();
  30. };
  31.  
  32.  
  33.  
  34. template <ePMQuery QUERY>
  35. class PRecty : public PRectQuery
  36. {
  37.  
  38. public:
  39.  
  40.     PRecty() : PRectQuery(QUERY) { };
  41. };
  42.  
  43. typedef PRecty<pm_getpagerect>            PGetPageRect;
  44. typedef PRecty<pm_getcroprect>            PGetCropRect;
  45. typedef PRecty<pm_getselectinfo>        PGetSelectInfo;
  46.  
  47. #endif
  48.  
  49. // end of PRectQuery.h
  50.